package com.itheima.HomeWork.homework05;

public class Phon implements PlayGame {
    private String brand;
    public double price;


    public Phon() {
    }

    public Phon(String brand, double price) {
        this.brand = brand;
        this.price = price;
    }

    public String getBrand() {
        return brand;
    }

    public void setBrand(String brand) {
        this.brand = brand;
    }

    public double getPrice() {
        return price;
    }

    public void setPrice(double price) {
        this.price = price;
    }
    void call(){
        System.out.println("正在使用"+getPrice()+"元 "+getBrand()+"打电话");
    }
    @Override
    public void playGame() {
        System.out.println("正在使用"+getPrice()+"元 "+getBrand()+"玩游戏");
    }
}
